package com.edu.study.base.StuQuestionBelongtoRelation.service.impl;

import com.edu.study.base.StuQuestionBelongtoRelation.domain.StuQuestionBelongtoRelation;
import com.edu.study.base.StuQuestionBelongtoRelation.mapper.StuQuestionBelongtoRelationMapper;
import com.edu.study.base.StuQuestionBelongtoRelation.service.IStuQuestionBelongtoRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 题库归属关系Service业务层处理
 *
 * @author jjt
 * @date 2021-04-02
 */
@Service
public class StuQuestionBelongtoRelationServiceImpl implements IStuQuestionBelongtoRelationService
{
    @Autowired
    private StuQuestionBelongtoRelationMapper stuQuestionBelongtoRelationMapper;

    /**
     * 查询题库归属关系
     *
     * @param id 题库归属关系ID
     * @return 题库归属关系
     */
    @Override
    public StuQuestionBelongtoRelation selectStuQuestionBelongtoRelationById(String id)
    {
        return stuQuestionBelongtoRelationMapper.selectStuQuestionBelongtoRelationById(id);
    }

    /**
     * 查询题库归属关系列表
     *
     * @param stuQuestionBelongtoRelation 题库归属关系
     * @return 题库归属关系
     */
    @Override
    public List<StuQuestionBelongtoRelation> selectStuQuestionBelongtoRelationList(StuQuestionBelongtoRelation stuQuestionBelongtoRelation)
    {
        return stuQuestionBelongtoRelationMapper.selectStuQuestionBelongtoRelationList(stuQuestionBelongtoRelation);
    }

    /**
     * 新增题库归属关系
     *
     * @param stuQuestionBelongtoRelation 题库归属关系
     * @return 结果
     */
    @Override
    public int insertStuQuestionBelongtoRelation(StuQuestionBelongtoRelation stuQuestionBelongtoRelation)
    {
        return stuQuestionBelongtoRelationMapper.insertStuQuestionBelongtoRelation(stuQuestionBelongtoRelation);
    }

    /**
     * 修改题库归属关系
     *
     * @param stuQuestionBelongtoRelation 题库归属关系
     * @return 结果
     */
    @Override
    public int updateStuQuestionBelongtoRelation(StuQuestionBelongtoRelation stuQuestionBelongtoRelation)
    {
        return stuQuestionBelongtoRelationMapper.updateStuQuestionBelongtoRelation(stuQuestionBelongtoRelation);
    }

    /**
     * 批量删除题库归属关系
     *
     * @param ids 需要删除的题库归属关系ID
     * @return 结果
     */
    @Override
    public int deleteStuQuestionBelongtoRelationByIds(String[] ids)
    {
        return stuQuestionBelongtoRelationMapper.deleteStuQuestionBelongtoRelationByIds(ids);
    }

    /**
     * 删除题库归属关系信息
     *
     * @param id 题库归属关系ID
     * @return 结果
     */
    @Override
    public int deleteStuQuestionBelongtoRelationById(String id)
    {
        return stuQuestionBelongtoRelationMapper.deleteStuQuestionBelongtoRelationById(id);
    }
}
